#include "MallardDuck.h"

#include "FlyWithWings.h"
#include "Quack.h"

#include <cstddef>
#include <iostream>

MallardDuck::MallardDuck(){
	this->flyBehavior = new FlyWithWings();
	this->quackBehavior = new Quack();
}

MallardDuck::~MallardDuck(){
    if (this->flyBehavior != NULL) {
	    delete this->flyBehavior;
    }
	this->flyBehavior = NULL;

    if (this->quackBehavior != NULL) {
	    delete this->quackBehavior;
    }
	this->quackBehavior = NULL;
}

void MallardDuck::display(){
	std::cout << "MallardDuck display()" << std::endl;
}